<template>
  <div class="box">
    <span>H</span>
    <span>E</span>
    <span>L</span>
    <span>L</span>
    <span>O</span>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <span>W</span>
    <span>O</span>
    <span>R</span>
    <span>L</span>
    <span>D</span>
    <span>!</span>
  </div>
</template>
<script setup lang="ts"></script>
<style scoped lang="less">
.box {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: #000;

  span {
    font-size: 100px;
    color: #fff;
    font-weight: 800;
    animation: fontChange 1.2s ease-in-out infinite alternate;
  }

  span:nth-child(1) {
    animation-delay: 0.1s;
  }

  span:nth-child(2) {
    animation-delay: 0.2s;
  }

  span:nth-child(3) {
    animation-delay: 0.3s;
  }

  span:nth-child(4) {
    animation-delay: 0.4s;
  }

  span:nth-child(5) {
    animation-delay: 0.5s;
  }

  span:nth-child(6) {
    animation-delay: 0.6s;
  }

  span:nth-child(7) {
    animation-delay: 0.7s;
  }

  span:nth-child(8) {
    animation-delay: 0.8s;
  }

  span:nth-child(9) {
    animation-delay: 0.9s;
  }

  span:nth-child(10) {
    animation-delay: 1s;
  }

  span:nth-child(11) {
    animation-delay: 1.1s;
  }

  @keyframes fontChange {
    to {
      color: rgb(92 92 207);
      text-shadow: 2px 2px 5px rgb(92 92 207);
    }
  }
}
</style>
